package ui
{
  import flash.display.Sprite
  import flash.events.Event
  
  public class UIComponent extends Sprite 
  {
    /**
     * Positioned object.
     * Object can contain folow members:
     * left - number of pixels
     */
    private var posObj: Object = null
    
    /**
     * Constructor
     */
    public function UIComponent (positionInit:Object) {
      super()
      posObj = positionInit
      addEventListener(Event.ADDED_TO_STAGE, function (event:Event):void {init()})
    }
    
    
    /**
     * Start init application
     */
    protected function init (): void {
      addEventListener(Event.RESIZE, function (event:Event):void {layout()})
    }
    
    
    /** **/
    protected function layout(): void {
      if (posObj) {
        
        if (posObj.height == null && posObj.width == null) {
        }
      }
    }
    
  }
}